import '../../domain/entities/counter.dart';

class CounterModel extends Counter {
  CounterModel(super.value);

  factory CounterModel.fromJson(Map<String, dynamic> json) {
    return CounterModel(json['value']);
  }

  Map<String, dynamic> toJson() {
    return {'value': value};
  }
}